// 指向结构的指针与函数

#include <iostream>
#include <string.h>
using namespace std;

struct Student {
    char name[40];
    char SSN[12];
    int dept;
    float gpa;
};

void GetStudentInfo(Student* p);

int main() {
    Student MyStudent;
    GetStudentInfo(&MyStudent);
}

void GetStudentInfo(Student* p) {
    strcpy(p->name, "J.E. White");
    strcpy(p->SSN, "555-11-5555");
    p->dept = 1;
    p->gpa = 3.8;
}